/* ==========================================================================
   FAKTOLINO MY ACCOUNT REDESIGN
   Global styling and layout for WooCommerce My Account area
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base & Layout overrides
   -------------------------------------------------------------------------- */
body.woocommerce-account {
    background-color: var(--fk-bg-warm) !important;
}

/* Specificity override to beat standard theme padding on My Account page */
body.woocommerce-account:not(.home) #page {
    max-width: 1180px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}

body.woocommerce-account .inside-article {
    background: transparent !important;
    padding: 0 !important;
}

/* The fk-account-grid is defined in functions.php nuclear override */
.fk-account-grid {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    max-width: 1180px !important; /* Perfect align with system max-width */
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 !important; /* Spans the full 1180px width */
    box-sizing: border-box !important;
}

@media (max-width: 960px) {
    .fk-account-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px 20px 16px !important; /* Maintain elegant padding on mobile screens */
        margin: 0 auto 20px auto !important;
        gap: 12px !important;
    }
}

/* Base Card Style for all My Account panels */
.fk-account-card {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

/* Mobile-only bottom sheet elements hidden by default on desktop */
.fk-mobile-nav-trigger-wrap,
.fk-bottom-sheet-backdrop,
.fk-bottom-sheet {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. Sidebar Navigation
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fk-account-sidebar {
    position: sticky;
    top: 40px;
}

/* User Profile Box */
.fk-profile-box {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.fk-profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.fk-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--fk-sun-bg, #e8f6cc) !important; /* Soft elegant pastel lime green */
    border: 2px solid var(--fk-sun) !important; /* Solid lime border defining it */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b5006 !important; /* Rich contrast dark olive green initials */
    font-size: 32px;
    font-weight: 700;
}

.fk-profile-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--fk-ink);
    color: var(--fk-card);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--fk-card);
}

.fk-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 4px;
    font-family: "Outfit", sans-serif;
}

.fk-profile-since {
    font-size: 12px;
    color: var(--fk-ink-3);
    margin: 0;
}

/* Navigation Menu */
.fk-nav-menu {
    margin-bottom: 24px;
}

.fk-nav-group {
    margin-bottom: 24px;
}

.fk-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fk-ink-3);
    margin-bottom: 12px;
    padding-left: 16px;
}

.fk-nav-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important; /* Transparent background to prevent fragmented boxes */
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul.fk-nav-list li a,
.fk-nav-list a {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 10px 16px !important;
    color: var(--fk-ink-2) !important;
    font-weight: 700 !important; /* Matches main nav font weight */
    font-size: 15px !important; /* Matches main nav font size */
    font-family: 'Nunito', sans-serif !important; /* Matches main nav font family */
    text-decoration: none !important;
    border-radius: 12px !important; /* Clean rounded shape */
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul.fk-nav-list li a:hover,
.fk-nav-list a:hover {
    background: rgba(0, 0, 0, 0.02) !important; /* Very soft hover background */
    color: var(--fk-ink) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul.fk-nav-list li.is-active a,
.fk-nav-list li.is-active a {
    background: var(--fk-bg-warm) !important; /* Soft, warm beige active pill */
    color: var(--fk-ink) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    transform: none !important;
    box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul.fk-nav-list li.is-active a:hover,
.fk-nav-list li.is-active a:hover {
    transform: none !important;
    background: var(--fk-bg-warm) !important;
    box-shadow: none !important;
}

.fk-nav-list a .fk-nav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Prevent flex shrinking */
    margin-right: 12px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.fk-nav-list a .fk-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.fk-nav-list li.is-active a .fk-nav-icon,
.fk-nav-list li a:hover .fk-nav-icon {
    opacity: 0.9;
}

.fk-nav-list a .fk-nav-badge {
    margin-left: auto;
    background: #ffdbdb;
    color: var(--fk-danger);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.fk-nav-list a .fk-nav-badge.is-gray {
    background: #f0f0f0;
    color: var(--fk-ink-3);
}

.fk-nav-list li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 16px !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    padding-top: 12px !important;
}

/* Help Box */
.fk-help-box {
    background: var(--fk-ink) !important; /* High contrast dark background */
    border-radius: 20px !important;
    padding: 24px !important;
    text-align: center !important;
    box-shadow: 0 8px 32px rgba(27, 26, 23, 0.15) !important;
}

.fk-help-icon {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 12px !important;
}

.fk-help-icon svg {
    fill: var(--fk-sun) !important;
}

.fk-help-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--fk-card) !important; /* High-contrast white */
    margin-bottom: 8px !important;
}

.fk-help-text {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important; /* Softer white text */
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
}

.fk-help-btn {
    display: block !important;
    background: var(--fk-sun) !important; /* Lime green accent */
    color: var(--fk-ink) !important; /* High contrast text */
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.fk-help-btn:hover {
    background: var(--fk-sun-deep) !important; /* Softer hover deep lime */
    transform: translateY(-2px) !important;
}

/* --------------------------------------------------------------------------
   3. Main Content Area
   -------------------------------------------------------------------------- */
.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* Generic heading inside my account */
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3,
.woocommerce-MyAccount-content > header h2 {
    font-family: "Outfit", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 24px;
}

/* All WooCommerce tables */
.woocommerce-MyAccount-content table.shop_table {
    background: var(--fk-card);
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 32px;
    border-spacing: 0;
    width: 100%;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: rgba(0,0,0,0.02);
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fk-ink-3);
}

.woocommerce-MyAccount-content table.shop_table td {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 24px;
    vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content a.button {
    background: var(--fk-sun);
    color: var(--fk-ink);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s;
    text-transform: none;
}

.woocommerce-MyAccount-content a.button:hover {
    background: var(--fk-sun-deep);
}

/* Forms (Edit Account, Address, etc) */
.woocommerce-MyAccount-content form {
    background: var(--fk-card) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 961px) {
    .woocommerce-MyAccount-content form {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        align-items: start !important;
    }
    
    .woocommerce-MyAccount-content form h3,
    .woocommerce-MyAccount-content form .form-row-wide,
    .woocommerce-MyAccount-content form p:not(.form-row-first):not(.form-row-last) {
        grid-column: 1 / -1 !important;
    }
    
    .woocommerce-MyAccount-content form .form-row-first {
        grid-column: 1 / 2 !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .woocommerce-MyAccount-content form .form-row-last {
        grid-column: 2 / 3 !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

.woocommerce-MyAccount-content form label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--fk-ink) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form .select2-container--default .select2-selection--single {
    width: 100% !important;
    background: var(--fk-bg-warm) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: var(--fk-ink) !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 48px !important;
}

/* Adjust Select2 height and text alignment */
.woocommerce-MyAccount-content form .select2-container--default .select2-selection--single {
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
}

.woocommerce-MyAccount-content form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--fk-ink) !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.woocommerce-MyAccount-content form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.woocommerce-MyAccount-content form input[type="text"]:focus,
.woocommerce-MyAccount-content form input[type="password"]:focus,
.woocommerce-MyAccount-content form input[type="email"]:focus,
.woocommerce-MyAccount-content form input[type="tel"]:focus {
    background: var(--fk-card);
    border-color: var(--fk-sun);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 223, 47, 0.2);
}

.woocommerce-MyAccount-content form button.button {
    background: var(--fk-ink);
    color: var(--fk-card);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    transition: all 0.2s;
    width: 100%;
    margin-top: 16px;
}

.woocommerce-MyAccount-content form button.button:hover {
    background: var(--fk-ink);
}

/* Addresses */
.woocommerce-MyAccount-content > p {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-MyAccount-content .u-columns.col2-set::before,
.woocommerce-MyAccount-content .u-columns.col2-set::after {
    display: none !important;
}

.woocommerce-MyAccount-content .u-columns.col2-set .u-column1,
.woocommerce-MyAccount-content .u-columns.col2-set .u-column2,
.woocommerce-MyAccount-content .u-columns.col2-set .col-1,
.woocommerce-MyAccount-content .u-columns.col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    background: var(--fk-card) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
    background: #f0f0f0;
    color: var(--fk-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
}

address {
    font-style: normal;
    color: var(--fk-ink-2);
    line-height: 1.6;
}

/* Info, Error and Messages */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 32px 32px 32px 72px; /* Space for the icon on the left */
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    border-top: none;
    color: var(--fk-ink);
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: block;
}

.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-error::before {
    color: var(--fk-sun);
    position: absolute;
    top: 32px;
    left: 32px;
    font-size: 20px;
    display: inline-block;
}

.woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-MyAccount-content .woocommerce-message .button,
.woocommerce-MyAccount-content .woocommerce-error .button {
    background: var(--fk-sun);
    color: var(--fk-ink);
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 20px;
    float: right;
    margin-left: 20px;
    margin-top: -10px; /* Align vertically with text */
}

/* Clearfix for the info boxes since the button is floated */
.woocommerce-MyAccount-content .woocommerce-info::after,
.woocommerce-MyAccount-content .woocommerce-message::after,
.woocommerce-MyAccount-content .woocommerce-error::after {
    content: "";
    display: table;
    clear: both;
}

/* Downloads specific */
.woocommerce-MyAccount-downloads .woocommerce-Message {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.woocommerce-MyAccount-downloads .woocommerce-Message a.button {
    margin-left: 16px;
    background: var(--fk-sun);
    color: var(--fk-ink);
}

/* --------------------------------------------------------------------------
   4. Dashboard Specific Styles (from screenshot)
   -------------------------------------------------------------------------- */
.fk-dash-welcome-banner {
    background: #eef8f3; /* Light green tint */
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.fk-dash-welcome-content {
    max-width: 70%;
    position: relative;
    z-index: 2;
}

.fk-dash-badge {
    display: inline-block;
    background: #c3ebd5;
    color: #145b37;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.fk-dash-title {
    font-family: "Outfit", sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.fk-dash-title-icon {
    margin-left: 12px;
    font-size: 32px;
}

.fk-dash-subtitle {
    font-size: 15px;
    color: var(--fk-ink-2);
    line-height: 1.5;
    margin: 0;
}

.fk-dash-welcome-action {
    position: relative;
    z-index: 2;
}

.fk-dash-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--fk-sun);
    color: var(--fk-ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.2s;
}

.fk-dash-btn-primary:hover {
    background: var(--fk-sun-deep);
    transform: translateY(-2px);
}

.fk-dash-btn-primary svg {
    margin-right: 8px;
}

.fk-dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.fk-stat-card {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.fk-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fk-stat-icon.is-yellow { background: var(--fk-sun-bg, #e8f6cc); color: var(--fk-sun-deep); }
.fk-stat-icon.is-green { background: var(--fk-mint-bg, #e3f5eb); color: var(--fk-mint-deep); }
.fk-stat-icon.is-red { background: #fee8e8; color: var(--fk-danger); }

.fk-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fk-ink-3);
    margin-bottom: 4px;
}

.fk-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--fk-ink);
    line-height: 1;
    margin-bottom: 4px;
    font-family: "Outfit", sans-serif;
}

.fk-stat-desc {
    font-size: 12px;
    color: var(--fk-ink-3);
}

/* Mixed Content Grid (Recent Orders, Standard-Adresse, Forscher Club) */
.fk-dash-mixed-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Perfect symmetry: equal widths! */
    gap: 24px !important;
    margin-bottom: 24px !important;
    align-items: stretch !important; /* Keep columns equal in height! */
}

/* Recent Orders inside Mixed Grid */
.fk-dash-recent-orders {
    background: var(--fk-card) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Align content nicely */
    height: 100% !important;
}

.fk-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fk-dash-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.fk-dash-header p {
    font-size: 12px;
    color: var(--fk-ink-3);
    margin: 4px 0 0;
}

.fk-dash-header-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--fk-ink);
    text-decoration: none;
}

.fk-order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fk-order-item {
    display: flex;
    align-items: center;
    background: var(--fk-card);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 16px;
}

.fk-order-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.fk-order-icon.is-yellow { background: var(--fk-sun-bg, #e8f6cc); color: var(--fk-sun-deep); }
.fk-order-icon.is-purple { background: #f0e6fc; color: var(--fk-lav-deep); }
.fk-order-icon.is-orange { background: var(--fk-peach-bg, #fcece3); color: #d66435; }

/* Echtes Produktbild im Order-Icon */
.fk-order-icon.has-img {
    background: transparent;
    overflow: hidden;
    padding: 0;
}
.fk-order-icon.has-img .fk-order-product-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.fk-order-details {
    flex-grow: 1;
}

.fk-order-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.fk-order-id {
    font-size: 12px;
    color: var(--fk-ink-3);
}

.fk-order-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}
.fk-order-status.is-versandt { background: var(--fk-sun-bg, #e8f6cc); color: var(--fk-sun-deep); }
.fk-order-status.is-geliefert { background: var(--fk-mint-bg, #e3f5eb); color: var(--fk-mint-deep); }

.fk-order-date {
    font-size: 12px;
    color: var(--fk-ink-3);
    white-space: nowrap;
    flex-shrink: 0;
}

.fk-order-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fk-ink);
    margin: 0;
}

.fk-order-actions {
    text-align: right;
    flex-shrink: 0;
}

.fk-order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 4px;
}

.fk-order-track {
    font-size: 12px;
    font-weight: 600;
    color: var(--fk-ink-2);
    text-decoration: underline;
}

/* Mixed Grid Right Column */
.fk-dash-right-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    height: 100% !important; /* Force full height to match grid row height */
}

.fk-dash-club-card {
    background: linear-gradient(135deg, #d3c4fc 0%, #b89cfa 100%);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.fk-club-badge {
    display: inline-block;
    background: var(--fk-card);
    color: var(--fk-lav-deep);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.fk-club-title {
    font-family: "Outfit", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 4px;
}

.fk-club-desc {
    font-size: 12px;
    color: rgba(28,28,28,0.7);
    margin-bottom: 16px;
}

.fk-club-actions {
    display: flex;
    gap: 12px;
}

.fk-club-btn-dark {
    background: var(--fk-ink);
    color: var(--fk-card);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.fk-club-btn-light {
    background: rgba(255,255,255,0.3);
    color: var(--fk-ink);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.fk-dash-address-card {
    background: var(--fk-card) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
    flex: 1 1 auto !important; /* Stretch to fill all available space */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.fk-dash-address-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}
.fk-dash-address-card > p {
    font-size: 11px;
    color: var(--fk-ink-3);
    margin: 0 0 16px;
}

.fk-address-content {
    font-size: 13px;
    color: var(--fk-ink-2);
    line-height: 1.6;
    margin-bottom: 16px;
}
.fk-address-content strong {
    color: var(--fk-ink);
    display: block;
    margin-bottom: 4px;
}

.fk-dash-address-card a.button {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    border-radius: 8px;
    color: var(--fk-ink);
    margin-top: auto;
    align-self: flex-start;
}

/* Weitermachen in deiner Bibliothek */
.fk-dash-library {
    background: var(--fk-card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.fk-lib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fk-lib-item {
    display: flex;
    align-items: center;
    background: var(--fk-card);
    border-radius: 16px;
    padding: 12px;
}

.fk-lib-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.fk-lib-thumb.is-yellow { background: var(--fk-sun-bg, #e8f6cc); }
.fk-lib-thumb.is-blue { background: #dff2fa; }
.fk-lib-thumb.is-purple { background: #efe8fa; }

.fk-lib-details {
    flex-grow: 1;
}

.fk-lib-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fk-ink);
    margin: 0 0 4px;
}

.fk-lib-meta {
    font-size: 10px;
    color: var(--fk-ink-3);
    margin-bottom: 6px;
}

.fk-lib-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}
.fk-lib-progress-bar {
    height: 100%;
    border-radius: 2px;
}
.fk-lib-progress-bar.is-yellow { background: var(--fk-sun-deep); width: 60%; }
.fk-lib-progress-bar.is-blue { background: var(--fk-sky-deep); width: 80%; }
.fk-lib-progress-bar.is-purple { background: var(--fk-lav-deep); width: 30%; }

.fk-lib-play {
    width: 32px;
    height: 32px;
    background: var(--fk-ink);
    color: var(--fk-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    cursor: pointer;
}
.fk-lib-play svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    margin-left: 2px;
}

@media (max-width: 960px) {
    /* Nuclear spacing reset to eliminate all gaps between header/navigation and account grid */
    body.woocommerce-account .site-header,
    body.woocommerce-account .main-navigation,
    body.woocommerce-account #site-navigation,
    body.woocommerce-account .navigation-clone,
    body.woocommerce-account .header-wrap,
    body.woocommerce-account #page,
    body.woocommerce-account #content,
    body.woocommerce-account .site-content,
    body.woocommerce-account #primary,
    body.woocommerce-account .content-area,
    body.woocommerce-account .site-main,
    body.woocommerce-account article,
    body.woocommerce-account .inside-article,
    body.woocommerce-account .separate-containers .inside-article,
    body.woocommerce-account .separate-containers .site-main,
    body.woocommerce-account .separate-containers .content-area,
    body.woocommerce-account .entry-content,
    body.woocommerce-account .woocommerce {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 1. Global Responsive & Grid Layout Corrections */
    .fk-account-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px 20px 16px !important;
        margin: 0 auto 20px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 12px !important;
        row-gap: 12px !important;
    }
    
    .fk-account-sidebar-col,
    .fk-account-content-col,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Extremely important: allows flex/grid items to shrink below their min-content width */
        box-sizing: border-box !important;
    }
    
    .fk-account-sidebar-col,
    .fk-account-sidebar,
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* Hide Profile Box & Help Box on Mobile to save massive vertical space */
    .fk-profile-box,
    .fk-help-box {
        display: none !important;
    }
    
    /* 2. Premium Bottom Sheet Navigation (App Drawer UX) */
    .fk-nav-menu {
        display: none !important; /* Hide default menu completely on mobile */
    }
    
    /* 1. Mobile Navigation Trigger Pill */
    .fk-mobile-nav-trigger-wrap {
        display: block !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }
    
    .fk-mobile-nav-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 12px 18px !important;
        background: var(--fk-card) !important; /* Premium white card pill */
        border: 1px solid rgba(0,0,0,0.04) !important;
        border-radius: 999px !important;
        color: var(--fk-ink) !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: all 0.2s ease !important;
    }
    
    .fk-mobile-nav-trigger:active {
        transform: scale(0.98) !important;
        background-color: var(--fk-bg-warm) !important;
    }
    
    .fk-trigger-label {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .fk-trigger-icon-span {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--fk-ink) !important;
    }
    
    .fk-trigger-icon-span svg {
        width: 100% !important;
        height: 100% !important;
        fill: currentColor !important;
    }
    
    .fk-trigger-arrow {
        opacity: 0.5 !important;
        transition: transform 0.2s ease !important;
    }
    
    /* 2. Bottom Sheet Backdrop */
    .fk-bottom-sheet-backdrop {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(27, 26, 23, 0.4) !important; /* Dark overlay */
        z-index: 99998 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .fk-bottom-sheet-backdrop.is-visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* 3. Bottom Sheet Panel */
    .fk-bottom-sheet {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 80% !important;
        background: var(--fk-card) !important;
        border-top-left-radius: 28px !important;
        border-top-right-radius: 28px !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08) !important;
        z-index: 99999 !important;
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-sizing: border-box !important;
    }
    
    .fk-bottom-sheet.is-open {
        transform: translateY(0) !important;
    }
    
    .fk-bottom-sheet-drag-handle {
        width: 40px !important;
        height: 4px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 2px !important;
        margin: 12px auto 8px auto !important;
        flex-shrink: 0 !important;
    }
    
    .fk-bottom-sheet-header {
        position: relative !important;
        text-align: center !important;
        padding: 0 24px 16px 24px !important;
        border-bottom: 1px solid rgba(0,0,0,0.04) !important;
        flex-shrink: 0 !important;
    }
    
    .fk-bottom-sheet-header h3 {
        font-family: 'Outfit', sans-serif !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        color: var(--fk-ink) !important;
        margin: 0 !important;
    }
    
    .fk-bottom-sheet-close {
        position: absolute !important;
        top: 0 !important;
        right: 20px !important;
        width: 32px !important;
        height: 32px !important;
        background: var(--fk-bg-warm) !important;
        border: none !important;
        border-radius: 50% !important;
        font-size: 20px !important;
        font-weight: 300 !important;
        color: var(--fk-ink) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        outline: none !important;
    }
    
    .fk-bottom-sheet-content {
        overflow-y: auto !important;
        padding: 16px 24px 40px 24px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .fk-bottom-sheet-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .fk-sheet-group-title {
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: var(--fk-ink-3) !important;
        margin: 16px 0 6px 0 !important;
        padding-left: 8px !important;
    }
    
    .fk-sheet-group-title:first-child {
        margin-top: 0 !important;
    }
    
    .fk-bottom-sheet-list li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .fk-bottom-sheet-list a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        background: var(--fk-bg-warm) !important;
        border-radius: 16px !important;
        color: var(--fk-ink) !important;
        font-family: 'Outfit', sans-serif !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(0,0,0,0.01) !important;
    }
    
    .fk-bottom-sheet-list a:active,
    .fk-bottom-sheet-list li.is-active a {
        background: var(--fk-ink) !important;
        color: var(--fk-card) !important;
        border-color: var(--fk-ink) !important;
    }
    
    .fk-sheet-icon {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0.8 !important;
    }
    
    .fk-sheet-icon svg {
        width: 100% !important;
        height: 100% !important;
        fill: currentColor !important;
    }
    
    .fk-bottom-sheet-list li.is-active .fk-sheet-icon {
        opacity: 1 !important;
    }
    
    .fk-bottom-sheet-list li.woocommerce-MyAccount-navigation-link--customer-logout a {
        background: #fff0f0 !important;
        color: var(--fk-danger) !important;
        border-color: rgba(209, 74, 74, 0.05) !important;
        margin-top: 12px !important;
    }
    
    .fk-bottom-sheet-list li.woocommerce-MyAccount-navigation-link--customer-logout a:active {
        background: var(--fk-danger) !important;
        color: var(--fk-card) !important;
    }
    
    /* 3. Dashboard Welcome Banner Responsiveness */
    .fk-dash-welcome-banner {
        background: var(--fk-card) !important; /* Beautiful premium white card container! */
        border-radius: 20px !important;
        padding: 32px 24px !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
        margin-bottom: 24px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
    }
    
    .fk-dash-welcome-content {
        max-width: 100% !important;
        margin-bottom: 24px !important;
    }
    
    .fk-dash-title {
        font-size: clamp(22px, 6vw, 32px) !important;
        text-align: center !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important; /* Flows like standard text block */
        line-height: 1.3 !important;
    }
    
    .fk-dash-welcome-action {
        width: 100% !important;
    }
    
    .fk-dash-btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* 4. Stats Grid, Library & Mixed Grid Stacking */
    .fk-dash-stats-grid,
    .fk-dash-mixed-grid,
    .fk-lib-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .fk-dash-recent-orders,
    .fk-dash-address-card,
    .fk-dash-library {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .fk-dash-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    /* Recent Orders Layout Adjustments */
    .fk-order-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .fk-order-details {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .fk-order-name {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .fk-order-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    /* Library Item Text-Wrap Prevention */
    .fk-lib-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .fk-lib-details {
        min-width: 0 !important;
    }
    
    .fk-lib-title {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 5. Modern Stacked WooCommerce Table Transformation */
    .woocommerce-MyAccount-content table.shop_table,
    .woocommerce-MyAccount-content table.shop_table_responsive,
    .woocommerce-MyAccount-content table.my_account_orders,
    .woocommerce-MyAccount-content table.my_account_downloads {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table thead {
        display: none !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table tr {
        display: block !important;
        width: 100% !important;
        background: var(--fk-card) !important;
        border-radius: 20px !important;
        padding: 20px !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
        margin-bottom: 16px !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        font-size: 14px !important;
        text-align: right !important;
        box-sizing: border-box !important;
        width: 100% !important;
        white-space: normal !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td:last-child {
        border-bottom: none !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td::before {
        content: attr(data-title) ": ";
        font-weight: 700 !important;
        color: var(--fk-ink) !important;
        text-align: left !important;
        margin-right: 16px !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        opacity: 0.7 !important;
        display: inline-block !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td.product-actions,
    .woocommerce-MyAccount-content table.shop_table td.order-actions,
    .woocommerce-MyAccount-content table.shop_table td.download-actions {
        justify-content: flex-end !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td.product-actions::before,
    .woocommerce-MyAccount-content table.shop_table td.order-actions::before,
    .woocommerce-MyAccount-content table.shop_table td.download-actions::before {
        display: none !important;
    }
    
    .woocommerce-MyAccount-content table.shop_table td a.button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
        margin: 4px 0 !important;
    }
    
    /* 6. Form Grid Stacking & Input Padding Refinements */
    .woocommerce-MyAccount-content form {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce-MyAccount-content form .form-row {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        clear: both !important;
    }
    
    .woocommerce-MyAccount-content form .form-row-first,
    .woocommerce-MyAccount-content form .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* 7. Stack Billing & Shipping Addresses */
    .woocommerce-MyAccount-content .u-columns.col2-set,
    .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 16px !important;
    }
    
    .woocommerce-MyAccount-content .woocommerce-Address {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
    }
}

/* ==========================================================================
   FAKTOLINO CUSTOM LOGIN & REGISTER REDESIGN
   ========================================================================== */

.fk-auth-wrapper {
    font-family: "Outfit", sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Reset WooCommerce default form box styles to blend seamlessly */
.fk-auth-wrapper form.woocommerce-form-login,
.fk-auth-wrapper form.woocommerce-form-register,
.fk-auth-wrapper form.login,
.fk-auth-wrapper form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* WooCommerce Notices Styling */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 24px auto !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    display: block !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03) !important;
    background: var(--fk-card) !important;
    border: none !important;
    border-left: 4px solid var(--fk-sun) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--fk-ink) !important;
    padding: 20px 24px 20px 60px !important; /* Space for absolute icon on the left */
    text-align: left !important;
    position: relative !important;
    list-style: none !important;
}

.woocommerce-error,
body.woocommerce-account .woocommerce-error {
    border-left-color: #EA4335 !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before {
    position: absolute !important;
    top: 20px !important; /* Align perfectly with first line of text */
    left: 22px !important;
    transform: none !important; /* Remove center translate for multi-line stability */
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
}

.woocommerce-error::before,
body.woocommerce-account .woocommerce-error::before {
    content: "❗" !important; /* Premium red exclamation mark matching the red left border */
}

.woocommerce-info::before,
body.woocommerce-account .woocommerce-info::before {
    content: "💡" !important;
}

.woocommerce-message::before,
body.woocommerce-account .woocommerce-message::before {
    content: "✅" !important;
}

/* Hide default WooCommerce password strength popup and hint text to prevent them from overlapping input fields and blocking user typing */
.woocommerce-password-strength,
.woocommerce-password-hint {
    display: none !important;
}

/* Ensure no bullets or list padding leak inside notices */
.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Auth split-screen container card */
.fk-auth-container {
    display: flex;
    background: var(--fk-card);
    border-radius: 32px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.04);
    overflow: hidden;
    min-height: 650px;
    transition: all 0.3s ease;
}

/* Left Pane (Forscher Brand Pane) */
.fk-auth-left {
    flex: 1;
    background: radial-gradient(circle at 80% 20%, #fff6d6 0%, var(--fk-bg) 55%, #efeafd 100%);
    padding: 60px 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

/* Floating emojis */
.fk-emoji {
    position: absolute;
    font-size: 32px;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease;
}

.fk-emoji:hover {
    transform: scale(1.2) rotate(8deg);
}

.fk-emoji-lion {
    top: 50px;
    right: 48px;
    font-size: 38px;
    animation: bounceSlow 6s infinite ease-in-out;
}

.fk-emoji-dolphin {
    top: 155px;
    right: 32px;
    font-size: 34px;
    animation: floatSlow 8s infinite ease-in-out;
}

.fk-emoji-star {
    top: 250px;
    left: 28px;
    font-size: 26px;
    animation: pulseSlow 4s infinite ease-in-out;
}

.fk-emoji-parrot {
    bottom: 150px;
    left: 40px;
    font-size: 30px;
    animation: floatParrot 7s infinite ease-in-out;
}

.fk-emoji-penguin {
    bottom: 240px;
    right: 32px;
    font-size: 30px;
    animation: bounceSlow 5s infinite ease-in-out;
}

/* Keyframe animations for micro-interactions */
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-12px) translateX(6px) rotate(-8deg); }
}

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

@keyframes floatParrot {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-6deg); }
}

/* Badge "+ Forscher-Konto" */
.fk-auth-badge {
    align-self: flex-start;
    background: var(--fk-sun);
    color: var(--fk-ink);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(200, 223, 47, 0.2);
}

.fk-auth-left-content {
    margin-bottom: auto;
    text-align: left;
}

.fk-auth-left-title {
    font-family: "Outfit", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fk-ink);
    margin-bottom: 16px;
}

.fk-auth-left-desc {
    font-size: 15px;
    color: var(--fk-ink-2);
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 32px;
}

/* White Card: 40 Animals */
.fk-info-card {
    background: var(--fk-card);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.fk-info-card-globe {
    width: 60px;
    height: 60px;
    background: var(--fk-sun);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.fk-info-card-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 4px;
}

.fk-info-card-text p {
    font-size: 13px;
    color: var(--fk-ink-2);
    line-height: 1.4;
    margin: 0;
}

/* Trust Section (Reviews) */
.fk-trust-section {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-top: auto;
}

.fk-trust-avatars {
    display: flex;
}

.fk-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--fk-ink);
    border: 2px solid var(--fk-bg);
    margin-right: -10px;
}

.fk-avatar-m { background-color: var(--fk-peach-bg, #fcece3); }
.fk-avatar-j { background-color: #e6fced; }
.fk-avatar-l { background-color: #e6f0fc; }

.fk-trust-ratings {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fk-stars {
    color: var(--fk-sun);
    font-size: 14px;
    letter-spacing: 2px;
}

.fk-trust-quote {
    font-size: 12px;
    color: var(--fk-ink-2);
    margin: 0;
}

/* Right Pane (Forms Column) */
.fk-auth-right {
    flex: 1.1;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: var(--fk-card);
}

/* Pills Switcher Tabs */
.fk-tabs-nav {
    display: inline-flex;
    background: var(--fk-bg-warm);
    padding: 4px;
    border-radius: 30px;
    align-self: flex-start;
    margin-bottom: 36px;
}

.fk-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 28px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--fk-ink-3);
    border-radius: 26px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.fk-tab-btn.active {
    background: var(--fk-card);
    color: var(--fk-ink);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.fk-auth-right-header {
    text-align: left;
    margin-bottom: 28px;
}

.fk-auth-right-title {
    font-family: "Outfit", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--fk-ink);
    margin-bottom: 8px;
}

.fk-auth-right-subtitle {
    font-size: 14px;
    color: var(--fk-ink-2);
    line-height: 1.5;
    margin: 0;
}

/* Social Buttons Grid */
.fk-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.fk-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 16px;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
    text-decoration: none !important;
}

.fk-btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.fk-btn-google {
    background: var(--fk-card);
    color: var(--fk-ink);
}

.fk-btn-google img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fk-btn-apple {
    background: var(--fk-ink);
    color: var(--fk-card);
    border-color: var(--fk-ink);
}

.fk-btn-apple svg {
    flex-shrink: 0;
}

/* Divider "ODER MIT E-MAIL" */
.fk-divider {
    text-align: center;
    position: relative;
    margin: 28px 0;
}

.fk-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.06);
    z-index: 1;
}

.fk-divider span {
    position: relative;
    z-index: 2;
    background: var(--fk-card);
    padding: 0 16px;
    color: var(--fk-ink-3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Form Fields */
.fk-input-group {
    margin-bottom: 22px;
    text-align: left;
}

.fk-input-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--fk-ink-3);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.fk-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Ensure WooCommerce's dynamically wrapped password span spans full width */
.fk-input-wrapper .password-input {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

/* Hide WooCommerce native password toggle button/pseudoelements */
.fk-input-wrapper .show-password-input,
.fk-input-wrapper .password-input .show-password-input,
.woocommerce-Input-toggle,
.woocommerce-password-toggle,
.show-password-input::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

.fk-input-icon {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--fk-ink-3) !important;
    font-size: 16px !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.fk-auth-wrapper .fk-input-wrapper input,
.fk-auth-wrapper .fk-input-wrapper input.input-text,
.fk-auth-wrapper .fk-input-wrapper input[type="text"],
.fk-auth-wrapper .fk-input-wrapper input[type="email"],
.fk-auth-wrapper .fk-input-wrapper input[type="password"],
.fk-auth-wrapper .fk-input-wrapper .password-input input,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input.input-text,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input#fk-login-username,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input#fk-login-password,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input#reg_billing_first_name,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input#reg_email,
body.woocommerce-account .fk-auth-wrapper .fk-input-wrapper input#reg_password {
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    background: var(--fk-bg-warm) !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--fk-ink) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

.fk-input-wrapper input:focus {
    background: var(--fk-card) !important;
    border-color: var(--fk-sun) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(252,213,92,0.15) !important;
}

.fk-password-toggle {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: var(--fk-ink-3) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    outline: none !important;
    padding: 0 !important;
    z-index: 99 !important;
}

/* Name Columns Grid (Vorname / Nachname) */
.fk-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-wrapper input,
body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-wrapper input.input-text,
body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-wrapper input#reg_billing_first_name {
    padding-left: 48px !important;
}

/* If last name doesn't have an icon, reduce padding-left */
body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-group:last-child .fk-input-wrapper input,
body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-group:last-child .fk-input-wrapper input.input-text,
body.woocommerce-account .fk-auth-wrapper .fk-name-grid .fk-input-group:last-child .fk-input-wrapper input#reg_billing_last_name {
    padding-left: 18px !important;
}

/* Kept logged in & custom checkboxes */
.fk-form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.fk-remember-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--fk-ink-2) !important;
    user-select: none !important;
    line-height: 1.4 !important;
    text-align: left !important;
    position: relative !important;
}

.fk-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--fk-ink-2) !important;
    user-select: none !important;
    line-height: 1.4 !important;
    text-align: left !important;
    position: relative !important;
}

/* Hide theme pseudo elements or other enqueued overrides that might leak */
.fk-remember-label::before,
.fk-remember-label::after,
.fk-checkbox-label::before,
.fk-checkbox-label::after {
    content: none !important;
    display: none !important;
}

.fk-remember-label input[type="checkbox"],
.fk-checkbox-label input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.fk-custom-checkbox {
    width: 20px !important;
    height: 20px !important;
    background-color: var(--fk-card) !important;
    border: 2px solid var(--fk-ink) !important;
    border-radius: 6px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    display: inline-block !important;
}

.fk-remember-label input:checked ~ .fk-custom-checkbox,
.fk-checkbox-label input:checked ~ .fk-custom-checkbox {
    background-color: var(--fk-ink) !important;
    border-color: var(--fk-ink) !important;
}

.fk-remember-label input:checked ~ .fk-custom-checkbox::after,
.fk-checkbox-label input:checked ~ .fk-custom-checkbox::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid var(--fk-card) !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: rotate(45deg) !important;
}

.fk-forgot-pw-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--fk-ink);
    text-decoration: underline;
}

.fk-forgot-pw-link:hover {
    color: var(--fk-ink);
}

/* Submit Buttons */
.fk-btn-submit {
    width: 100%;
    height: 54px;
    border-radius: 20px;
    border: none;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    outline: none;
}

.fk-btn-submit.is-yellow {
    background: var(--fk-sun);
    color: var(--fk-ink);
}

.fk-btn-submit.is-yellow:hover {
    background: var(--fk-sun-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(252,213,92,0.25);
}

.fk-btn-submit.is-black {
    background: var(--fk-ink);
    color: var(--fk-card);
}

.fk-btn-submit.is-black:hover {
    background: var(--fk-ink);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.fk-submit-icon {
    font-size: 15px;
}

/* Magic Link Button */
.fk-btn-magic-link {
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1.5px dashed rgba(28,28,28,0.15);
    background: var(--fk-card);
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--fk-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 14px;
    outline: none;
}

.fk-btn-magic-link:hover {
    background: var(--fk-bg);
    border-color: var(--fk-sun);
}

/* Footer Link Below Forms */
.fk-form-switch-footer {
    font-size: 13px;
    color: var(--fk-ink-2);
    margin: 24px 0 0 0;
    text-align: center;
}

.fk-form-switch-footer a {
    color: var(--fk-ink);
    font-weight: 700;
    text-decoration: underline;
}

.fk-form-switch-footer a:hover {
    color: var(--fk-ink);
}

/* Green Welcome Gift Banner (Hidden by user request) */
.fk-gift-banner {
    display: none !important;
}

/* Password Strength segments styling */
.fk-pw-strength-container {
    margin-top: 10px;
}

.fk-pw-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.fk-pw-bar {
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.fk-pw-bar.is-weak {
    background: #EA4335;
}

.fk-pw-bar.is-medium {
    background: #FBBC05;
}

.fk-pw-bar.is-strong {
    background: var(--fk-mint-deep);
}

.fk-pw-strength-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--fk-ink-3);
    font-weight: 600;
}

.fk-pw-text strong {
    transition: color 0.3s;
}

/* Beige Paw Optional Box */
.fk-optional-kid-box {
    background: var(--fk-bg);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    text-align: left;
}

.fk-kid-box-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fk-kid-box-icon {
    font-size: 22px;
    background: var(--fk-sun);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fk-kid-box-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.fk-kid-box-title strong {
    color: var(--fk-ink);
    font-weight: 700;
}

.fk-kid-box-title span {
    color: var(--fk-ink-2);
}

.fk-kid-box-input {
    flex-basis: 100%;
}

.fk-kid-box-input input {
    width: 100% !important;
    height: 44px !important;
    background: var(--fk-card) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: var(--fk-ink) !important;
}

/* Mehrkind-Hinweis: volle Breite als eigene Zeile unter dem Namensfeld. Ohne flex-basis:100%
   landet er als 3. Flex-Spalte neben Titel + Input und quetscht beide zusammen. */
.fk-kid-box-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--fk-ink-3, #8A8276);
    font-weight: 600;
}

.fk-kid-box-hint strong {
    color: var(--fk-ink-2);
    font-weight: 700;
}

/* Checkbox Groups below paw box */
.fk-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.fk-checkbox-group .fk-checkbox-label {
    align-items: flex-start;
}

.fk-checkbox-group .fk-custom-checkbox {
    margin-top: 1px;
}

.fk-asterisk {
    color: #EA4335;
    font-weight: 700;
}

/* Trust Badge Footer */
.fk-auth-footer-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 36px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fk-ink-3);
}

/* Dynamic Tab Switching show/hide rules */
.fk-auth-container.show-login .register-only {
    display: none !important;
}

.fk-auth-container.show-register .login-only {
    display: none !important;
}

/* Responsive Scaling Overrides */
@media (max-width: 960px) {
    .fk-auth-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .fk-auth-left {
        padding: 48px 32px;
    }
    
    .fk-auth-left-title {
        font-size: 28px;
    }
    
    .fk-auth-left-desc {
        max-width: 100%;
        margin-bottom: 24px;
    }
    
    .fk-auth-right {
        padding: 48px 32px;
    }
    
    .fk-emoji-lion { top: 30px; right: 30px; font-size: 32px; }
    .fk-emoji-dolphin { top: 90px; right: 20px; font-size: 28px; }
    .fk-emoji-star { top: 160px; left: 20px; font-size: 22px; }
    .fk-emoji-parrot { display: none; }
    .fk-emoji-penguin { display: none; }
    
    .fk-optional-kid-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fk-optional-kid-box .fk-kid-box-input,
    .fk-optional-kid-box .fk-kid-box-input input {
        width: 100% !important;
        text-align: left !important;
    }
    
    .fk-auth-footer-badges {
        gap: 16px;
        flex-direction: column;
        align-items: center;
        margin-top: 24px;
    }
}

/* Tablet / Mobile Landscape Viewports */
@media (max-width: 768px) {
    .fk-auth-left {
        padding: 40px 24px;
    }
    .fk-auth-left-title {
        font-size: 30px;
    }
    .fk-auth-right {
        padding: 40px 24px;
    }
    .fk-auth-right-title {
        font-size: 26px;
    }
    .fk-info-card {
        padding: 16px;
        gap: 16px;
    }
    .fk-info-card-globe {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 14px;
    }
    .fk-info-card-text h4 {
        font-size: 14px;
    }
    .fk-info-card-text p {
        font-size: 12px;
    }
}

/* Mobile Portrait Viewports */
@media (max-width: 560px) {
    .fk-auth-wrapper {
        margin: 16px auto;
        padding: 0 12px;
    }
    .fk-auth-container {
        border-radius: 24px;
    }
    .fk-auth-left {
        padding: 32px 20px;
    }
    .fk-auth-left-title {
        font-size: 26px;
    }
    .fk-emoji {
        display: none !important;
    }
    .fk-name-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Compact Mobile Devices */
@media (max-width: 480px) {
    .fk-auth-right {
        padding: 32px 18px;
    }
    .fk-auth-right-title {
        font-size: 22px;
    }
    .fk-tabs-nav {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .fk-tab-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 10px !important;
        font-size: 13.5px !important;
    }
    .fk-social-buttons {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Narrow/Older Mobile Devices */
@media (max-width: 440px) {
    .fk-auth-right {
        padding: 24px 14px;
    }
    .fk-form-actions-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    .fk-forgot-pw-link {
        align-self: flex-start !important;
    }
}

/* ==========================================================================
   FAKTOLINO PLAYFUL MICRO-INTERACTIONS & ANIMATIONS (PREMIUM COGNITIVE INTERFACE)
   ========================================================================== */

/* 1. Entry Animations - Staggered Page Load */
@keyframes fkFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fk-profile-box,
.fk-nav-menu,
.fk-help-box,
.fk-dash-welcome-banner,
.fk-dash-stats-grid,
.fk-dash-mixed-grid,
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3,
.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content form,
.fk-bibliothek-dashboard {
    opacity: 0;
    animation: fkFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delay for satisfying load geometry */
.fk-profile-box { animation-delay: 0.02s; }
.fk-nav-menu { animation-delay: 0.06s; }
.fk-help-box { animation-delay: 0.1s; }

.fk-dash-welcome-banner,
.fk-bibliothek-dashboard,
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > p { 
    animation-delay: 0.05s; 
}

.fk-dash-stats-grid,
.woocommerce-MyAccount-content table.shop_table { 
    animation-delay: 0.12s; 
}

.fk-dash-mixed-grid,
.woocommerce-MyAccount-content form { 
    animation-delay: 0.18s; 
}

/* 2. Playful Emoji Wobble (Greeting Wave Loop) */
@keyframes fkWave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.fk-dash-title-icon {
    display: inline-block !important;
    transform-origin: 70% 70%;
    animation: fkWave 2.5s ease-in-out infinite;
}

/* 3. Springy Card Rise on Hover (Playful yet professional) */
.fk-stat-card,
.fk-help-box,
.fk-profile-box,
.fk-dash-recent-orders,
.fk-dash-address-card,
.woocommerce-MyAccount-content table.shop_table tr,
.woocommerce-Address,
.woocommerce-MyAccount-content form {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease !important;
}

.fk-stat-card:hover,
.fk-dash-recent-orders:hover,
.fk-dash-address-card:hover,
.woocommerce-Address:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06) !important;
}

.fk-help-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(27, 26, 23, 0.25) !important;
}

.fk-profile-box:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.04) !important;
}

/* 4. Playful Icon wobbling on hover */
@keyframes fkWobble {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.2) rotate(-12deg); }
    50% { transform: scale(1.2) rotate(12deg); }
    70% { transform: scale(1.2) rotate(-6deg); }
    90% { transform: scale(1.2) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.fk-stat-card:hover .fk-stat-icon svg,
.fk-stat-box:hover .fk-stat-icon svg,
.fk-nav-list li a:hover .fk-nav-icon svg,
.woocommerce-MyAccount-navigation ul.fk-nav-list li a:hover .fk-nav-icon svg {
    animation: fkWobble 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 5. Button scale responsive feedback */
.fk-dash-btn-primary,
.fk-help-btn,
.fk-btn-dark,
.woocommerce-MyAccount-content a.button {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s !important;
}

.fk-dash-btn-primary:hover,
.fk-help-btn:hover,
.fk-btn-dark:hover,
.woocommerce-MyAccount-content a.button:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 4px 12px rgba(200, 223, 47, 0.3) !important;
}

.fk-btn-dark:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Premium Express Checkout / Apple Pay Button Styling for Cart Page */
body.woocommerce-cart #wc-stripe-payment-request-wrapper,
body.woocommerce-cart #wc-stripe-payment-request-button,
body.woocommerce-cart .wc-stripe-payment-request-button-separator,
body.woocommerce-cart #wc-express-checkout-button,
body.woocommerce-cart .wc-express-checkout-button,
body.woocommerce-cart .wc-express-checkout-button-wrapper,
body.woocommerce-cart .wc-block-components-express-payment,
body.woocommerce-cart .paypal-button-container,
body.woocommerce-cart .wc-ppcp-express-button,
body.woocommerce-cart [class*="payment-request"],
body.woocommerce-cart [id*="payment-request"] {
    margin-top: 24px !important;
    margin-bottom: 4px !important;
    border-radius: 999px !important; /* Perfect pill style matching "Weiter zur Kasse" */
    overflow: hidden !important; /* Essential to clip sharp corners of the inner payment iframe */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease !important;
}

/* Zero out proceed-to-checkout wrapper and button spacing to eliminate layout gap */
body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    margin: 0 !important;
}

/* Explicit layout and sizing overrides for Mollie Apple Pay Button Wrapper */
body.woocommerce-cart #mollie-applepayDirect-button {
    display: block !important;
    width: 100% !important;
    height: 54px !important; /* Perfectly matches the green checkout button's height */
    min-height: 54px !important;
    max-height: 54px !important;
    margin-top: 6px !important; /* Super tight, precise gap under the green checkout button! */
    margin-bottom: 14px !important; /* Spacing before the payment icons row */
    padding: 0 !important;
    border-radius: 999px !important; /* Perfect pill style matching "Weiter zur Kasse" */
    overflow: hidden !important; /* Essential to clip sharp corners of the inner native button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--fk-ink) !important; /* Native black background for Apple Pay */
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease !important;
    clear: both !important;
}

/* Inner native Apple Pay button: must remain clean to prevent Safari click interference */
body.woocommerce-cart #mollie_applepay_button,
body.woocommerce-cart .apple-pay-button,
body.woocommerce-cart .apple-pay-button-black {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important; /* Render transparently inside the black parent wrapper */
    border-radius: inherit !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Hover & Active States for all Express Checkout Buttons */
body.woocommerce-cart #wc-stripe-payment-request-button:hover,
body.woocommerce-cart #wc-express-checkout-button:hover,
body.woocommerce-cart .wc-express-checkout-button:hover,
body.woocommerce-cart #mollie_applepay_button:hover,
body.woocommerce-cart .apple-pay-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.95 !important;
}

body.woocommerce-cart #wc-stripe-payment-request-button:active,
body.woocommerce-cart #wc-express-checkout-button:active,
body.woocommerce-cart .wc-express-checkout-button:active,
body.woocommerce-cart #mollie_applepay_button:active,
body.woocommerce-cart .apple-pay-button:active {
    transform: translateY(-0.5px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}





/* ── Barrierefreiheit: Animationen bei prefers-reduced-motion deaktivieren ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

