#akt-wrapper {
    max-width: 860px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
#akt-wrapper.akt-light {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.akt-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.akt-btn {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.akt-btn:hover {
    background: linear-gradient(135deg, #1557b0, #0d47a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}
.akt-btn-theme {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
#akt-wrapper.akt-light .akt-btn-theme {
    background: linear-gradient(135deg, #334155, #1e293b);
}

.akt-toggle {
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    user-select: none;
}
#akt-wrapper.akt-light .akt-toggle { color: #4a5568; }
.akt-toggle input {
    accent-color: #1a73e8;
    width: 16px;
    height: 16px;
}

#akt-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    font-size: 22px;
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Geeza Pro', 'Simplified Arabic', serif;
    line-height: 1.8;
    border: 2px solid #2a3a4e;
    border-radius: 12px;
    background: #0a1628;
    color: #e2e8f0;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
#akt-wrapper.akt-light #akt-textarea {
    background: #ffffff;
    color: #1a202c;
    border-color: #cbd5e0;
}
#akt-textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
}
#akt-textarea::placeholder { color: #475569; }

#akt-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #111c2e;
    border-radius: 12px;
    border: 1px solid #1e2d42;
    transition: all 0.3s ease;
}
#akt-wrapper.akt-light #akt-keyboard {
    background: #e8ecf0;
    border-color: #c0c8d0;
}

.akt-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.akt-key {
    min-width: 48px;
    height: 52px;
    border: 1px solid #2a3a4e;
    background: linear-gradient(180deg, #1e2d42 0%, #162235 100%);
    color: #e2e8f0;
    font-size: 18px;
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Geeza Pro', serif;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    user-select: none;
    position: relative;
    padding: 2px 4px;
}
#akt-wrapper.akt-light .akt-key {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    color: #1a202c;
    border-color: #c0c8d0;
}
.akt-key:hover {
    background: linear-gradient(180deg, #253b56 0%, #1e2d42 100%);
    border-color: #3a5a7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#akt-wrapper.akt-light .akt-key:hover {
    background: linear-gradient(180deg, #e2e8f0 0%, #d0d8e0 100%);
    border-color: #90a0b0;
}
.akt-key:active, .akt-key.akt-active {
    background: linear-gradient(180deg, #1a73e8 0%, #1557b0 100%);
    border-color: #1a73e8;
    transform: translateY(0);
    color: #fff;
}

.akt-key .akt-main {
    font-size: 17px;
    line-height: 1.2;
}
.akt-key .akt-eng {
    font-size: 9px;
    color: #64748b;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1;
}
#akt-wrapper.akt-light .akt-key .akt-eng { color: #718096; }

.akt-key .akt-sub {
    position: absolute;
    top: 3px;
    left: 6px;
    font-size: 10px;
    color: #64748b;
    font-family: 'Segoe UI', sans-serif;
}

.akt-key-wide { min-width: 80px; font-size: 13px; font-family: 'Segoe UI', sans-serif; letter-spacing: 0.5px; }
.akt-key-space { flex: 1; max-width: 320px; font-size: 13px; font-family: 'Segoe UI', sans-serif; }
.akt-key-backspace { min-width: 90px; font-size: 13px; font-family: 'Segoe UI', sans-serif; }
.akt-key-enter { min-width: 90px; font-size: 13px; font-family: 'Segoe UI', sans-serif; }

.akt-footer {
    text-align: center;
    margin-top: 12px;
    color: #475569;
    font-size: 12px;
}
#akt-wrapper.akt-light .akt-footer { color: #718096; }

@media (max-width: 600px) {
    #akt-wrapper { padding: 12px; }
    .akt-key { min-width: 28px; height: 44px; font-size: 15px; border-radius: 6px; }
    .akt-key .akt-eng { font-size: 7px; }
    .akt-key-wide { min-width: 50px; }
    .akt-key-backspace, .akt-key-enter { min-width: 55px; }
    #akt-textarea { font-size: 18px; }
    .akt-row { gap: 3px; }
    #akt-keyboard { gap: 4px; padding: 10px; }
}
