.ak-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
    .ak-breadcrumb a:hover { color: var(--primary); }

    .ak-hero-card { background: linear-gradient(135deg, var(--card-bg) 0%, rgba(108, 92, 231, 0.03) 100%); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px; margin-bottom: 25px; box-shadow: var(--shadow-subtle); position: relative; overflow: hidden; }
    .ak-hero-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }
    .ak-hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; position: relative; z-index: 1; }
    .ak-song-title { font-size: 2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 12px; line-height: 1.3; }
    .ak-artist-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(108, 92, 231, 0.1); color: var(--primary) !important; font-weight: 800; font-size: 1rem; padding: 6px 18px; border-radius: 50px; border: 1px solid rgba(108, 92, 231, 0.25); transition: 0.25s; }
    .ak-artist-badge:hover { background: var(--primary); color: #ffffff !important; transform: translateY(-2px); }

    .rating-row { display: flex; align-items: center; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
    .star-rating { display: inline-flex; gap: 4px; direction: ltr; cursor: pointer; }
    .star-rating span { font-size: 1.4rem; color: rgba(255, 255, 255, 0.2); transition: color 0.15s; }
    .star-rating span.active, .star-rating span:hover, .star-rating span:hover ~ span { color: #f39c12; }

    .ak-classic-meta-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; margin-top: 25px; gap: 20px; }
    .ak-meta-item { display: flex; flex-direction: column; gap: 6px; }
    .ak-meta-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
    .ak-meta-value { font-size: 1rem; font-weight: 800; color: var(--text-dark); }

    .ak-chords-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
    .ak-chord-chip { background: rgba(108, 92, 231, 0.15); color: var(--primary-light); border: 1px solid rgba(108, 92, 231, 0.3); padding: 3px 10px; border-radius: 8px; font-size: 0.92rem; font-weight: 800; font-family: monospace, sans-serif; cursor: pointer; transition: 0.2s; }
    .ak-chord-chip:hover { background: var(--primary); color: #ffffff; transform: translateY(-2px); }

    .ak-smart-capo-wrapper { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; background: rgba(255, 255, 255, 0.03); padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border-color); user-select: none; flex-wrap: wrap; }
    .ak-smart-capo-label { font-size: 0.92rem; color: var(--text-dark); font-weight: 700; cursor: pointer; }
    .ak-toggle-switch { position: relative; width: 44px; height: 24px; background: #333644; border-radius: 20px; cursor: pointer; transition: 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.15); direction: ltr; flex-shrink: 0; }
    .ak-toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.25); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); }
    .ak-toggle-switch.active { background: var(--primary); border-color: var(--primary); }
    .ak-toggle-switch.active::after { transform: translateX(20px); }
    .ak-capo-stepper { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 2px 8px; border: 1px solid var(--border-color); }
    .ak-capo-step-btn { background: transparent; border: none; color: var(--text-dark); font-weight: 800; font-size: 1.1rem; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
    .ak-capo-step-btn:hover { background: var(--primary); color: #fff; }
    .ak-capo-fret-display { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); min-width: 60px; text-align: center; }
    .ak-capo-badge { display: none; font-size: 0.85rem; background: rgba(0, 210, 211, 0.12); color: var(--accent); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(0, 210, 211, 0.3); font-weight: 800; }
    .ak-capo-badge.show { display: inline-flex; align-items: center; gap: 6px; }

    .ak-controls-toolbar { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 16px; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; }
    .tool-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .tool-label { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); margin-left: 5px;}
    .transpose-keys { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .transpose-keys a { display: inline-flex; align-items: center; justify-content: center; direction: ltr; unicode-bidi: embed; min-width: 32px; padding: 4px 8px; font-size: 0.85rem; border-radius: 6px; background: rgba(255,255,255,0.06); color: var(--text-dark); text-decoration: none; font-family: monospace, sans-serif; font-weight: bold; transition: 0.2s; border: 1px solid var(--border-color); cursor:pointer;}
    .transpose-keys a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
    .transpose-keys a.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 10px rgba(108,92,231,0.4); }

    .ak-content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 25px; margin-bottom: 80px; }
    .ak-chord-paper { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 35px 30px; box-shadow: var(--shadow-subtle); overflow-x: auto; }
    #main-chord, pre.chord, .ak-chord-paper pre, .ak-chord-paper-inner {
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.5;
        white-space: pre;
        direction: rtl;
        text-align: right;
        color: var(--text-dark);
        margin: 0;
        padding: 2px 0 6px 0;
        border: none;
        background: transparent;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .chord-line, .chord-text {
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        display: block;
        min-height: 0;
        white-space: pre;
        unicode-bidi: embed;
    }
    .chord-line {
        direction: ltr;
        text-align: right;
        line-height: 1.15;
        margin: 10px 0 1px 0;
    }
    .chord-line:first-child {
        margin-top: 0;
    }
    .chord-line + .chord-line {
        margin-top: 2px;
    }
    .chord-line:empty {
        display: none;
    }
    .chord-text {
        direction: rtl;
        text-align: right;
        line-height: 1.45;
        margin: 0;
    }
    .chord-text + .chord-text {
        margin-top: 3px;
    }
    .chord-stanza-gap {
        display: block;
        height: 8px;
    }
    .chord-stanza-gap + .chord-line {
        margin-top: 4px;
    }
    .c {
        color: var(--primary) !important;
        font-weight: 800 !important;
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, monospace, sans-serif !important;
        cursor: pointer;
        transition: 0.15s ease;
        border-radius: 4px;
        direction: ltr;
        unicode-bidi: embed;
        display: inline-block;
        padding: 0 2px;
    }
    .c:hover { background: var(--primary) !important; color: #ffffff !important; transform: scale(1.12); }
    .c.playing { background: var(--primary) !important; color: #ffffff !important; transform: scale(1.25); box-shadow: 0 0 12px rgba(108, 92, 231, 0.65); }
    .ak-chord-chip.playing { background: var(--primary) !important; color: #ffffff !important; transform: scale(1.12); box-shadow: 0 0 10px rgba(108, 92, 231, 0.5); }
    .chord-rahnama-btns button.playing { transform: scale(1.15); box-shadow: 0 0 10px rgba(108, 92, 231, 0.5); }

    .ak-chord-guide-widget { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 22px 18px; box-shadow: var(--shadow-subtle); height: fit-content; position: sticky; top: 90px; }
    .guide-title { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    .chord-rahnama-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
    .chord-rahnama-btns button { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-dark); padding: 5px 10px; border-radius: 8px; font-weight: 800; font-family: monospace, sans-serif; cursor: pointer; transition: 0.2s; }
    .chord-rahnama-btns button.active, .chord-rahnama-btns button:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }
    .chord-diag-img-wrap { background: #ffffff; border-radius: 12px; padding: 12px; text-align: center; min-height: 180px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 6px rgba(0,0,0,0.1); }
    .chord-img { max-width: 100%; max-height: 180px; height: auto; }

    @keyframes pulse-tuner-dot { 0% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(0, 210, 211, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 210, 211, 0); } }
    .ak-tuner-dot { width: 8px; height: 8px; background: #00d2d3; border-radius: 50%; display: inline-block; animation: pulse-tuner-dot 2s infinite; margin-left: 6px; }

    .autoscroll-banner {
        display: none;
        position: fixed;
        bottom: 85px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--card-bg);
        border: 1px solid var(--primary);
        padding: 6px 14px;
        border-radius: 40px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
        z-index: 1000;
        align-items: center;
        gap: 8px;
        color: var(--text-dark);
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        flex-wrap: nowrap;
    }
    .autoscroll-banner button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        background: transparent;
        cursor: pointer;
        color: var(--text-dark);
        transition: 0.2s;
        padding: 0;
        flex-shrink: 0;
    }
    .autoscroll-banner button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
    .autoscroll-banner .stop-btn {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.08);
        border-color: rgba(239, 68, 68, 0.4);
        width: auto !important;
        height: 32px;
        padding: 0 12px;
        border-radius: 20px;
        font-size: 0.78rem;
        font-weight: 700;
        white-space: nowrap !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
        line-height: 1;
        font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .autoscroll-banner .stop-btn span {
        white-space: nowrap !important;
        line-height: 1;
        display: inline-block;
    }
    .autoscroll-banner .stop-btn svg {
        flex-shrink: 0;
    }
    .autoscroll-banner .stop-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

    /* Bottom Nav Bar */
    .ak-bottom-toolbar {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--card-bg); border-top: 1px solid var(--border-color);
        display: flex; justify-content: space-around; align-items: center;
        padding: 10px 5px 25px 5px; z-index: 999;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }
    .toolbar-btn {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        background: transparent; border: none; color: var(--text-muted); font-size: 0.75rem;
        font-weight: 700; cursor: pointer; transition: 0.2s; gap: 4px; padding: 5px; font-family: "Vazirmatn", sans-serif;
    }
    .toolbar-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .toolbar-btn:hover, .toolbar-btn.active { color: var(--primary); }
    #toolbarTunerBtn { color: var(--primary); position: relative; }
    #toolbarTunerBtn .ak-tuner-dot { position: absolute; top: -2px; right: 8px; width: 6px; height: 6px; }

    /* Bottom Sheets */
    .ak-bottom-sheet {
        position: fixed; bottom: -100%; left: 0; right: 0;
        background: var(--card-bg); border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1); z-index: 1000;
        transition: 0.3s ease-in-out; padding: 20px;
        max-height: 80vh; overflow-y: auto; border-top: 1px solid var(--border-color);
    }
    .ak-bottom-sheet.active { bottom: 0; }
    .sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    .sheet-title { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); margin: 0; }
    .sheet-close { background: rgba(255,255,255,0.1); border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
    .ak-sheet-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998;
        opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .ak-sheet-overlay.active { opacity: 1; visibility: visible; }

    /* Tuner Modal Overlay */
    .gt-tuner-app { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #2c2d35 0%, #18181c 50%, #0f0f13 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; font-family: sans-serif; }
    .tuner-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(8px); z-index: 999999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
    .tuner-modal-overlay.show { opacity: 1; visibility: visible; }
    .tuner-modal-content { position: relative; width: 92%; max-width: 440px; height: 85vh; max-height: 700px; background: #181922; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.6); }
    .tuner-close-btn { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.1); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; z-index: 999; }
    .gt-start-container { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; z-index: 10;}
    .gt-start-btn { background: linear-gradient(135deg, #a29bfe, #6c5ce7); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; font-size: 15px; font-weight: bold; cursor: pointer; box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25); transition: 0.3s;}
    .gt-visualizer { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 500px; padding-top: 50px;}
    .gt-status-text { height: 30px; background: rgba(255,255,255,0.1); color: #fff; padding: 5px 18px; border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 20px; opacity: 1; transition: opacity 0.3s; direction: rtl;}
    .gt-tuning-area { position: relative; width: 280px; height: 120px; margin-bottom: 20px;}
    .gt-center-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.15); transform: translateX(-50%); z-index: 1;}
    .gt-bubble { position: absolute; top: 20px; left: 50%; width: 50px; height: 50px; background: #2a2a35; border: 2px solid #f39c12; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: bold; font-size: 16px; transform: translateX(-50%); transition: background 0.3s, border-color 0.3s; z-index: 3;}
    .gt-bubble::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-width: 10px 8px 0; border-style: solid; border-color: #f39c12 transparent transparent transparent; transition: border-color 0.3s;}
    .gt-bubble.tuned { background: #00d2d3; border-color: #00d2d3; box-shadow: 0 0 25px rgba(0, 210, 211, 0.4);}
    .gt-bubble.tuned::after { border-top-color: #00d2d3; }
    .gt-headstock-box { display: flex; justify-content: center; position: relative; width: 220px; height: 320px; margin-top: 10px;}
    .guitar-img{ width: 79%; margin: auto;}
    .gt-peg { position: absolute; width: 48px; height: 48px; background: #32323a; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 18px; font-weight: 900; box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 5px 10px rgba(0,0,0,0.5); transition: 0.3s; z-index: 5; cursor: pointer;}
    .peg-e2 { top: 145px; left: -36px; } .peg-a2 { top: 91px; left: -34px; } .peg-d3 { top: 33px; left: -33px; }
    .peg-g3 { top: 33px; right: -33px; } .peg-b3 { top: 91px; right: -34px; } .peg-e4 { top: 145px; right: -36px; }
    .gt-peg.active { background: #fff; color: #000; transform: scale(1.1); }
    .gt-peg.tuned { background: #00d2d3; color: #151518; transform: scale(1.15); box-shadow: 0 0 20px rgba(0, 210, 211, 0.5); border-color: #00d2d3;}

    @media (max-width: 992px) { .ak-content-grid { grid-template-columns: 1fr; } .ak-chord-guide-widget { position: static; } }
    @media (max-width: 768px) { .ak-song-title { font-size: 1.55rem; } .ak-chord-paper { padding: 22px 18px; } }

    /* Subscription Modal */
    .ak-sub-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.78);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        padding: 16px;
    }
    .ak-sub-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    .ak-sub-modal-card {
        background: var(--card-bg, #1a1a24);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        border-radius: 20px;
        width: 100%;
        max-width: 440px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
        overflow: hidden;
        transform: scale(0.92);
        transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        direction: rtl;
        text-align: right;
    }
    .ak-sub-modal-overlay.show .ak-sub-modal-card {
        transform: scale(1);
    }
    .ak-sub-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    }
    .ak-sub-modal-title {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--text-dark, #fff);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .ak-sub-modal-close {
        background: rgba(255, 255, 255, 0.08);
        border: none;
        color: var(--text-muted, #aaa);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
    }
    .ak-sub-modal-close:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }
    .ak-sub-modal-body {
        padding: 22px;
    }
    .ak-sub-lead {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-dark, #fff);
        margin: 0 0 16px 0;
        line-height: 1.6;
    }
    .ak-sub-features-box {
        background: rgba(108, 92, 231, 0.07);
        border: 1px solid rgba(108, 92, 231, 0.2);
        border-radius: 14px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 11px;
    }
    .ak-sub-feature-row {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.88rem;
        color: var(--text-dark, #e2e8f0);
        line-height: 1.5;
    }
    .ak-sub-tick {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 900;
        flex-shrink: 0;
    }
    .ak-sub-modal-footer {
        padding: 8px 22px 22px 22px;
    }
    .ak-sub-modal-cta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 13px 20px;
        font-size: 0.98rem;
        font-weight: 800;
        border-radius: 12px;
        background: linear-gradient(135deg, #6c5ce7, #a29bfe);
        color: #fff !important;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
        border: none;
        cursor: pointer;
    }
    .ak-sub-modal-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(108, 92, 231, 0.45);
    }
