/* Weddi Cloud — Soft Light Official
   Built from the original style language:
   elegant, premium, restrained, and brighter.
*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #bfa16a;
    --gold-light: #d7bf93;
    --gold-dark: #9c7f4e;
    --gold-glow: rgba(191, 161, 106, 0.12);

    --dark: #fbf8f4;
    --dark-2: #f7f2ed;
    --dark-3: #f2ebe5;
    --dark-card: #ffffff;
    --dark-card-hover: #fcf8f5;
    --dark-input: #fffdfa;

    --border: rgba(160, 139, 110, 0.14);
    --border-hover: rgba(160, 139, 110, 0.24);
    --border-focus: rgba(171, 205, 226, 0.55);

    --text-primary: #2f2924;
    --text-secondary: #766c63;
    --text-muted: #a0958c;

    --error: #d26c74;
    --success: #5b9a74;
    --blue: #8cb7d4;

    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    font-family: 'Heebo', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.22;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background:
        radial-gradient(ellipse, rgba(215, 228, 242, 0.28) 0%, transparent 45%),
        radial-gradient(ellipse at 65% 25%, rgba(255, 242, 233, 0.35) 0%, transparent 48%),
        radial-gradient(ellipse at 35% 35%, rgba(248, 224, 230, 0.18) 0%, transparent 42%);
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(191, 161, 106, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(191, 161, 106, 0.35);
}

.app {
    min-height: 100vh;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 244, 0.86);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-logo {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: radial-gradient(circle at 40% 40%, rgba(215,191,147,0.2), transparent 70%);
    box-shadow: 0 0 0 3px rgba(191,161,106,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: box-shadow var(--transition);
}

.header-logo:hover {
    box-shadow: 0 0 0 5px rgba(191,161,106,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.header-title span {
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    margin-right: 0.6rem;
    letter-spacing: 0.18em;
    opacity: 0.85;
}

.header-center {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap svg {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.55rem 2.4rem 0.55rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.8);
    color: var(--text-primary);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.search-input:focus {
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(171, 205, 226, 0.14);
}

.search-input::placeholder { color: var(--text-muted); }

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, #efe1c7 0%, #d7bf93 45%, #bfa16a 100%);
    color: #3b2f1f;
    box-shadow: 0 4px 18px rgba(191, 161, 106, 0.16), inset 0 1px 0 rgba(255,255,255,0.55);
    font-weight: 600;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(191, 161, 106, 0.22);
}

.btn-gold:active { transform: translateY(0); }

.btn-outline {
    background: rgba(255,255,255,0.72);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-focus);
    color: var(--gold-dark);
    background: rgba(215,228,242,0.16);
}

.btn-ghost {
    background: rgba(215,228,242,0.22);
    color: #6d8798;
    border: 1px solid rgba(171,205,226,0.22);
}

.btn-ghost:hover {
    background: rgba(215,228,242,0.34);
    border-color: rgba(171,205,226,0.34);
}

.btn-sm {
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

.btn-danger {
    background: rgba(210, 108, 116, 0.08);
    color: var(--error);
    border: 1px solid rgba(210, 108, 116, 0.12);
}

.btn-danger:hover {
    background: rgba(210, 108, 116, 0.14);
    border-color: rgba(210,108,116,0.22);
}

.btn svg {
    width: 15px;
    height: 15px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--dark-input);
    color: var(--text-primary);
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(171, 205, 226, 0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #ffffff;
    color: var(--text-primary);
}

.main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.client-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(62, 48, 35, 0.05);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.client-card::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 2px;
}

.client-card:hover {
    border-color: var(--border-hover);
    background: var(--dark-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(62,48,35,0.08), 0 0 0 1px rgba(191,161,106,0.05);
}

.client-card:hover::before { opacity: 0.45; }
.client-card:hover::after { opacity: 0.28; }

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.client-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(215,191,147,0.18), rgba(171,205,226,0.08));
    border: 1px solid rgba(191,161,106,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.client-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
}

.client-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    background: rgba(255,255,255,0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(160,139,110,0.08);
}

.client-vendor {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.client-links-count {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-gallery {
    background: rgba(215, 191, 147, 0.16);
    color: #8d6d39;
    border: 1px solid rgba(191,161,106,0.14);
}

.badge-video {
    background: rgba(171,205,226,0.18);
    color: #5d85a1;
    border: 1px solid rgba(140,183,212,0.14);
}

.badge-custom {
    background: rgba(91,154,116,0.12);
    color: var(--success);
    border: 1px solid rgba(91,154,116,0.14);
}

.client-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(160,139,110,0.08);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(75, 63, 53, 0.28);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease;
}

.modal {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 30px 80px rgba(62,48,35,0.12);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--dark-2);
    z-index: 10;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--error);
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.links-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.links-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-item {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.link-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.link-item-type {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.link-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(210, 108, 116, 0.1);
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.link-remove:hover {
    background: rgba(210, 108, 116, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(215,191,147,0.08);
    border: 1px solid rgba(191,161,106,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon svg {
    width: 36px;
    height: 36px;
    opacity: 0.45;
    color: var(--gold-dark);
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.client-view {
    min-height: 100vh;
    background: var(--dark);
}

.client-view-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 3.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(215,191,147,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(171,205,226,0.1) 0%, transparent 60%),
        var(--dark);
}

.client-view-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(191,161,106,0.06);
    box-shadow: 0 0 0 40px rgba(191,161,106,0.03), 0 0 0 80px rgba(171,205,226,0.025);
    pointer-events: none;
}

.client-view-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191,161,106,0.18), transparent);
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dark);
    opacity: 0.82;
    font-family: 'DM Mono', monospace;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.6s ease both;
}

.client-view-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    animation: floatUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.1s both;
}

.client-view-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.7s ease 0.3s both;
}

.client-view-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(160,139,110,0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
}

.hero-share-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    animation: fadeIn 0.7s ease 0.45s both;
}

.hero-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-share-btn.primary {
    background: linear-gradient(135deg, #efe1c7, #bfa16a);
    color: #3b2f1f;
    box-shadow: 0 4px 18px rgba(191,161,106,0.16);
}

.hero-share-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(191,161,106,0.22);
    transform: translateY(-1px);
}

.hero-share-btn.secondary {
    background: rgba(215,228,242,0.2);
    color: #607e91;
    border: 1px solid rgba(171,205,226,0.22);
}

.hero-share-btn.secondary:hover {
    background: rgba(215,228,242,0.32);
    color: var(--text-primary);
}

.hero-share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.client-view-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.client-view-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.link-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.gallery-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gallery-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: rgba(215,191,147,0.12);
    border: 1px solid rgba(191,161,106,0.14);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.gallery-pill:hover {
    background: rgba(215,191,147,0.2);
    border-color: rgba(191,161,106,0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(191,161,106,0.1);
}

.gallery-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(49,41,35,0.76);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.gallery-lightbox-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.gallery-lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.gallery-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gallery-lightbox-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all var(--transition);
}

.gallery-lightbox-link:hover {
    color: #ffffff;
    border-color: rgba(215,191,147,0.45);
}

.gallery-lightbox-link svg {
    width: 13px;
    height: 13px;
}

.gallery-lightbox-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: rgba(210,108,116,0.18);
    border-color: rgba(210,108,116,0.32);
    color: #ffffff;
}

.gallery-lightbox-frame {
    width: 100%;
    max-width: 1100px;
    flex: 1;
    max-height: calc(90vh - 80px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(191,161,106,0.12);
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.gallery-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.video-card {
    background: #fff;
    border: 1px solid rgba(160,139,110,0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(62,48,35,0.05);
}

.video-card:hover {
    border-color: rgba(191,161,106,0.2);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(62,48,35,0.09);
}

.video-embed {
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-type {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.custom-link-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-link-card:hover {
    border-color: rgba(191, 161, 106, 0.22);
    background: var(--dark-card-hover);
    transform: translateY(-2px);
}

.custom-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(215, 191, 147, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-link-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold-dark);
}

.custom-link-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: 'Heebo', sans-serif;
}

.back-link:hover {
    color: var(--gold-dark);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.copy-link-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-top: 1rem;
}

.copy-link-url {
    flex: 1;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-card {
    animation: cardEntrance 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(91,154,116,0.24);
    color: var(--success);
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    font-size: 0.88rem;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 8px 30px rgba(62,48,35,0.12);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: rgba(210,108,116,0.24);
    color: var(--error);
}

.password-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(215,191,147,0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 10%, rgba(215,228,242,0.18) 0%, transparent 40%),
        var(--dark);
}

.password-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(62,48,35,0.1), 0 0 0 1px rgba(191,161,106,0.04);
    animation: floatUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.password-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: radial-gradient(circle at 40% 40%, rgba(215,191,147,0.24), transparent 70%);
    box-shadow: 0 0 26px rgba(191,161,106,0.08), inset 0 1px 0 rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.password-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.password-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-center { display: none; }

    .main {
        padding: 1rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .client-view-name {
        font-size: 2.2rem;
    }

    .client-view-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 0.5rem;
    }
}
